package org.gd.hellojaxb.privat24.regular;

import javax.xml.bind.annotation.*;

@XmlEnum
public enum RegularPayResult {

    @XmlEnumValue("Y") WITH_RESULT_SET("Y", "выводить резалтсет"),
    @XmlEnumValue("") WITHOUT_RESULT_SET("", "не выводить резалтсет");

    private String name;
    private String description;

    private RegularPayResult(String name, String description) {
        this.name = name;
        this.description = description;
    }

    public String getName() {
        return name;
    }

    @SuppressWarnings("unused")
    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        return getName();
    }
}
